
import wx

ID_ABOUT = 101
ID_EXIT = 110

class TextWindow(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(400, 200),
                          style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
        self.control = wx.TextCtrl(self, 1, style=wx.TE_MULTILINE)
        self.CreateStatusBar()
        #----------------------------------------------------------- start menu
        filemenu = wx.Menu()
        filemenu.Append(ID_ABOUT, "&About", "Info about beetle")
        filemenu.AppendSeparator()
        filemenu.Append(ID_EXIT, "E&xit", "Termintate")
        menubar = wx.MenuBar()
        menubar.Append(filemenu, "&Beetle")
        self.SetMenuBar(menubar)
        #------------------------------------------------------------- end menu
        self.Show(True)

app = wx.PySimpleApp()
frame = TextWindow(None, -1, "beetle")
#frame = wx.Frame(None, -1, "beetle")
#frame.Show(1)
app.MainLoop()
